package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) {


        ConfigurableApplicationContext run = SpringApplication.run(DemoApplication.class, args);

        Object domainA = run.getBean("domainA");

        Object domainB = run.getBean("domainB");


//        String[] beanDefinitionNames = run.getBeanDefinitionNames();
//
//        for (String beanDefinitionName : beanDefinitionNames) {
//
//            System.out.println(beanDefinitionName);
//
//        }

    }

}
